package com.inspur.s57.datacatalog.dao;

import com.inspur.s57.datacatalog.entity.DataAttribute;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DataAttributeDAO extends JpaRepository<DataAttribute,Integer> {

    Page<DataAttribute> findDataAttributesByClassIdAndNameLike(Integer classId,String name, Pageable pageable);

    List<DataAttribute> findDataAttributesByClassIdEquals(Integer classId);
}
